package com.atguigu.springcloud.alibaba.controller.utils;

import com.atguigu.springcloud.alibaba.controller.service.Motor;
import com.atguigu.springcloud.alibaba.controller.service.impl.ElectricAdapter;
import com.atguigu.springcloud.alibaba.controller.service.impl.OpticalAdapter;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: Fanw
 * @Date: 2021/4/18 14:09
 * @Description:
 */
@Slf4j
public class AdapterTest {

    public static void main(String[] args) {
        Motor motor = new ElectricAdapter();
        motor.drive();
        log.info("-----------------------------------------");
        Motor motor1 = new OpticalAdapter();
        motor1.drive();
    }
}
